/**
 * Copyright (c) 2014, 2017, Oracle and/or its affiliates.
 * The Universal Permissive License (UPL), Version 1.0
 */
"use strict";
define(["ojs/ojcore","jquery","ojs/ojcomponentcore","ojs/ojdvt-base","ojs/internal-deps/dvt/DvtPictoChart"],function(a,g,b,c,d){a.Ra("oj.ojPictoChart",g.oj.dvtBaseComponent,{widgetEventPrefix:"oj",options:{optionChange:null,drill:null},Dg:function(a,b,c){return d.PictoChart.newInstance(a,b,c)},Hk:function(a){var b=a.subId;"oj-pictochart-item"==b?b="item["+a.index+"]":"oj-pictochart-tooltip"==b&&(b="tooltip");return b},Oh:function(a){var b={};0==a.indexOf("item")?(b.subId="oj-pictochart-item",b.index=
this.Jk(a)):"tooltip"==a&&(b.subId="oj-pictochart-tooltip");return b},Jf:function(){var a=this._super();a.push("oj-pictochart");return a},Ej:function(){var a=this._super();a["oj-pictochart-item"]={path:"_defaultColor",property:"background-color"};return a},Fj:function(){return["optionChange"]},El:function(a){"drill"===a.type?this._trigger("drill",null,{id:a.id}):this._super(a)},getItem:function(a){return this.xa.getAutomation().getItem(a)},getItemCount:function(){return this.xa.getAutomation().getItemCount()},
getContextByNode:function(a){return(a=this.getSubIdByNode(a))&&"oj-pictochart-tooltip"!==a.subId?a:null},Ik:function(){return{root:["items"]}},tH:function(){return!0}});a.Components.Xa("ojPictoChart","dvtBaseComponent",{properties:{animationDuration:{type:"number|string"},animationOnDataChange:{type:"string"},animationOnDisplay:{type:"string"},columnCount:{type:"number"},columnWidth:{type:"number"},drilling:{type:"string"},hiddenCategories:{type:"Array\x3cstring\x3e"},highlightedCategories:{type:"Array\x3cstring\x3e"},
highlightMatch:{type:"string"},hoverBehavior:{type:"string"},hoverBehaviorDelay:{type:"number|string"},items:{type:"Array\x3cobject\x3e"},layout:{type:"string"},layoutOrigin:{type:"string"},rowCount:{type:"number"},rowHeight:{type:"number"},selection:{type:"Array\x3cstring\x3e"},selectionMode:{type:"string"},tooltip:{type:"object"}},methods:{getContextByNode:{},getItem:{},getItemCount:{}},extension:{_widgetName:"ojPictoChart"}});a.Components.register("oj-picto-chart",a.Components.getMetadata("ojPictoChart"))});